<?php

declare(strict_types=1);

namespace app\shop\validate\admin\attr;

use sheep\validate\Backend;

class ShopType extends Backend
{
    protected $rule = [
        'type_name' => 'require|max:255',
    ];

    protected $message = [
        'type_name.require' => '请填写分类服务名称',
        'type_name.max' => '分类服务名称最多不超过255个字符',
    ];


    protected $scene = [
        'add'  => ['type_name'],
        'edit' => ['type_name'],
    ];
}
